<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<script type="text/javascript">
	function cancelar(){
		document.forms[0].metodo.value="cancelNuevoHos";
	    document.forms[0].submit();
	}
</script>

		<div id="posts">
			<div class="post">
			<html:form action="hospedaje">
			<input type="hidden" name="metodo" value="nuevoHospedaje"/>
				<h2 class="title">Registrar Hospedaje</h2>
				<div class="story">
					<p>Datos Personales</p>
											
					
					
                    	<table>    
                    	<tr>
                            	<td>Cliente</td>
                                <td><bean:write name="hdet" property="usersByIdUsuarioCli.nombrecompleto" scope="request"/></td>
                            </tr>
                                            	 	
                        	<tr>
                            	<td>Tipo de Habitacion:</td>
                                <td>
                                	<bean:write name="hdet" property="habitacion.tipohabitacion.nombre" scope="request"/>
                                </td>
                            </tr>
                            <tr>
                            	<td>Habitaciones:</td>
                                <td>
                                	<bean:write name="hdet" property="habitacion.numero" scope="request"/>
                                </td>
                            </tr>
                            <tr>
                            	<td>D&iacute;as:</td>
                                <td><bean:write name="hdet" property="diasreserva" scope="request"/></td>
                            </tr>
                            <tr>
                            	<td>Fecha:</td>
                                <td>
                                	<bean:write name="hdet" property="fecAlquiler" scope="request"/>
                                </td>
                            </tr>
                      	</table>
                                                                       
                        <p>
                        	<input name="btnRegistrar" value="Registrar" type="submit" class="input-normalb"/>
                        	<input name="btnCancelar" value="Cancelar" type="button" onclick="javascript:cancelar();" class="input-normalb"/>
                        </p>
				</div>       
            </html:form>                
			</div>
		</div>
	